import request from "@/utils/request";

// 1. 请求品牌列表
export const reqTrademarkList = ({ page, limit }) =>
  request.get(`/admin/product/baseTrademark/${page}/${limit}`);

// 2.修改品牌
export const reqUpdateTrademark = (trademark) =>
  request.put(`/admin/product/baseTrademark/update`, trademark);

// 3.删除品牌
export const reqDeleteTrademark = (id) =>
  request.delete(`/admin/product/baseTrademark/remove/${id}`);

// 4. 新增品牌
export const reqAddTrademark = (trademark) =>
  request.post(`/admin/product/baseTrademark/save`, trademark);

// 5.获取所有品牌
export const reqAllTrdeamarkList = () =>
  request.get(`/admin/product/baseTrademark/getTrademarkList`);
